package com.myself.model.demo.netty.chat;

import cn.hutool.core.util.StrUtil;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
/**
 * @author Czx
 */
public class ChatClientHandler extends SimpleChannelInboundHandler<String> {

    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, String s) throws Exception {
        System.out.println(StrUtil.format("本地接收【{}】 接收信息:{} ", channelHandlerContext.channel().localAddress(), s));
    }
}
